<template>
    <div>
        <Child></Child>
        <Suspense>
            <template v-slot:default>
                <Child></Child>
            </template>
            <template v-slot:fallback>
                <span>数据加载中，请稍等</span>
            </template>
        </Suspense>

    </div>
</template>
<script>
import { defineAsyncComponent } from 'vue';
const Child = defineAsyncComponent(() => import('./Child.vue'))
export default {
    components: {Child}
}
</script>